﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Warehouse.DataAccess
{
    public partial class Distributor : CustomeEntity<Distributor>
    {
        protected override System.Linq.Expressions.Expression<Func<Distributor, bool>> GetPredicate()
        {
            return p => p.ID == this.ID;
        }

        #region Public Static Methods
        public static Distributor GetDistributor(int Id)
        {
            return GetOne(p => p.ID == Id);
        }

        public static Distributor[] GetDistributors()
        {
            return GetList().ToArray();
        }
        #endregion
    }
}
